package com.woniu.account.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;


@Data
public class LoginForm {

    /**
     * 用户名
     */
    @NotBlank(message = "账号名不能为空")
    @Length(max = 20, message = "用户名不能超过20个字符")
    @Length(min = 3, message = "用户名不能小于3个字符")
//    @ApiModelProperty("用户名")
    private String adminName;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Length(max = 20, message = "密码不能超过20个字符")
    @Length(min = 6, message = "密码不能小于6个字符")
//    @ApiModelProperty("密码")
    private String adminPass;
}
